package com.key.w8.common;

import java.io.IOException;

/**
 * @Author: k8
 * @CreateTime: 2025-03-02
 * @Version: 1.0
 */
public class H1H2ConnectionAdapter implements ConnectionAdapter{
    private ConnectionAdapter connection;

    public H1H2ConnectionAdapter(ConnectionAdapter connectionAdapter) {
        this.connection = connectionAdapter;
    }



    @Override
    public State state() {
        return this.connection.state();
    }

    @Override
    public void state(State state) {
        this.connection.state(state);
    }



    @Override
    public void close() throws IOException {
        this.connection.close();
    }
}
